<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1>
			权限控制平台 <small> {$_appList_[$_SESSION['_appid_']]['name']}</small>
		</h1>
		<ol class="breadcrumb">
			<li><a href="/admin/app/appList"><i class="fa fa-dashboard"></i> 应用</a></li>
			<li class="active">首页</li>
		</ol>
	</section>
	<!-- Main content -->
	<section class="content">
		<div class="row">
			<div class="col-xs-12">
				<div class="box">
					<div class="box-header">
						<h3 class="box-title">Hello {$_user_.nickname}.</h3>
					</div>
					<!-- /.box-header -->
					<div class="box-body">
						<h5>欢迎登陆使用唯智管理系统！</h5>
						<php>if($userStat && ($userStat['user_group_id']==3)):</php>
						<!-- Info boxes -->
						<div class="row">

							<div class="col-md-3 col-sm-6 col-xs-12">
								<div class="info-box">
									<span class="info-box-icon bg-olive"><i class="ion ion-pie-graph"></i></span>

									<div class="info-box-content">
										<span class="info-box-text">销售额</span>
										<span class="info-box-number">{$userStat.total_amount|default=0}</span>
									</div>
									<!-- /.info-box-content -->
								</div>
								<!-- /.info-box -->
							</div>
							<!-- /.col -->
							<div class="col-md-3 col-sm-6 col-xs-12">
								<div class="info-box">
									<span class="info-box-icon bg-red"><i class="ion ion-pie-graph"></i></span>

									<div class="info-box-content">
										<span class="info-box-text">成本金额</span>
										<span class="info-box-number">{$userStat.total_base_price|default=0}</span>
									</div>
									<!-- /.info-box-content -->
								</div>
								<!-- /.info-box -->
							</div>
							<!-- /.col -->

							<!-- fix for small devices only -->
							<div class="clearfix visible-sm-block"></div>

							<div class="col-md-3 col-sm-6 col-xs-12">
								<div class="info-box">
									<span class="info-box-icon bg-fuchsia-active"><i class="ion ion-pie-graph"></i></span>

									<div class="info-box-content">
										<span class="info-box-text">毛利润</span>
										<span class="info-box-number">{$userStat.total_profit_price|default=0}</span>
									</div>
									<!-- /.info-box-content -->
								</div>
								<!-- /.info-box -->
							</div>
							<!-- /.col -->
							<div class="col-md-3 col-sm-6 col-xs-12">
								<div class="info-box">
									<span class="info-box-icon bg-maroon-active"><i class="ion ion-pie-graph"></i></span>

									<div class="info-box-content">
										<span class="info-box-text">其他费用</span>
										<span class="info-box-number">{$userStat.total_other_price|default=0}</span>
									</div>
									<!-- /.info-box-content -->
								</div>
								<!-- /.info-box -->
							</div>
							<!-- /.col -->
						</div>
						<!-- /.row -->




						<div class="row">
							<div class="col-lg-3 col-xs-6">
								<!-- small box -->
								<div class="small-box bg-yellow">
									<div class="inner">
										<h3>{$userStat.all_customer|default=0}</h3>

										<p>总客户数</p>
									</div>
									<div class="icon">
										<i class="ion ion-person-add"></i>
									</div>
									<a href="/admin/customer/customerList" class="small-box-footer">详情 <i class="fa fa-arrow-circle-right"></i></a>
								</div>
							</div>
							<!-- ./col -->
							<div class="col-lg-3 col-xs-6">
								<!-- small box -->
								<div class="small-box bg-green">
									<div class="inner">
										<h3>{$userStat.all_order|default=0}</h3>

										<p>总订单数</p>
									</div>
									<div class="icon">
										<i class="ion ion-bag"></i>
									</div>
									<a href="/admin/order/salesmanOrderList" class="small-box-footer">详情<i class="fa fa-arrow-circle-right"></i></a>
								</div>
							</div>
							<!-- ./col -->
							<div class="col-lg-3 col-xs-6">
								<!-- small box -->
								<div class="small-box bg-aqua">
									<div class="inner">
										<h3>{$userStat.over_order|default=0}</h3>

										<p>成单数</p>
									</div>
									<div class="icon">
										<i class="ion ion-ios-checkmark"></i>
									</div>
									<a href="/admin/order/salesmanOrderList?flag=3" class="small-box-footer">详情 <i class="fa fa-arrow-circle-right"></i></a>
								</div>
							</div>
							<!-- ./col -->
							<div class="col-lg-3 col-xs-6">
								<!-- small box -->
								<div class="small-box bg-navy">
									<div class="inner">
										<h3>{$userStat.going_order|default=0}</h3>

										<p>进行中</p>
									</div>
									<div class="icon">
										<i class="ion ion-pie-graph"></i>
									</div>
									<a href="/admin/order/salesmanOrderList?flag=2" class="small-box-footer">详情 <i class="fa fa-arrow-circle-right"></i></a>
								</div>
							</div>
							<!-- ./col -->
						</div>
						<php>endif;</php>
					</div>
					<!-- /.box-body -->
				</div>
			</div>
		</div>
	</section>
</div>
